package com.atung.merchant.vo.save;

import com.atung.merchant.enums.RoleType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author Administrator
 */
@Data
public class SaveMerchantUserRequest {
    @ApiModelProperty("编号")
    private Long id;
    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String name;
    @ApiModelProperty("角色类型")
    private RoleType role;
    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;
}
